<template>
  <div class="radioButtonPanelPage ls-panel" style="background-color: rgba(255,0,0,0.2)">
    {{radioButton.name}}的页面
  </div>
</template>

<script lang="ts">
import {defineComponent, PropType} from 'vue';
import {RadioButtonType} from "../radioButtonPanelCore";

export default defineComponent({
  name: 'radioButtonPanelTestA',
  //这里使用props而不使用inject，动态组件props在切换组件后不会改变。
  props: {
    radioButton: {
      type: Object as PropType<RadioButtonType>,
      required: true
    }
  },
  setup() {
    return {};
  }
})
</script>

<style scoped>
.radioButtonPanelPage {
  position: absolute;
  right: 0.5em;
  top: 3.5em;
  width: 200px;
  height: 300px;
}
</style>